package com.zh.test.exception;

public enum ErrorEnum {

    SUCCESS(200,"成功"),
    ERROR(400,"错误");

    private int code;
    private String message;

     ErrorEnum(int code,String message){
        this.code = code;
        this.message  = message;
    }
    public String message(){
         return  this.message;
    }

    public int code(){
         return  this.code;
    }
}
